﻿/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author
 */
Cognitum.Polizas.Auto.Individual.Editor = Ext.extend(Cognitum.Polizas.General.Editor, {

    esFlotilla: false,
    
    initComponent: function(){
        Ext.apply(this, {
            seccionesAdicionales: [{
                title: 'Datos del Auto',
                propertyName: 'Movimiento',
                items: [{
			        fieldLabel: 'Id',
			        name: 'Id',
			        xtype: 'hidden',
			        allowBlank: true
			    },{
                    fieldLabel: 'Inciso',
                    name: 'Inciso',
                    allowBlank: true
                }, {
                    fieldLabel: 'Serie',
                    name: 'Serie'
                }, {
                    fieldLabel: 'Motor',
                    name: 'Motor'
                }, {
                    fieldLabel: 'Placas',
                    name: 'Placas'
                }, {
                    fieldLabel: 'Conductor Habitual',
                    name: 'ConductorHabitual'
                }, {
                    fieldLabel: 'Marca',
                    name: 'Marca',
                    xtype: 'entity.link',
                    entityName: 'Marcas'
                }, {
                    fieldLabel: 'Versión',
                    name: 'Version'
                }, {
                    fieldLabel: 'Modelo',
                    name: 'Modelo',
                    xtype: 'numberfield',
				    vtype: 'numericMask'
                }, {
                    fieldLabel: 'Beneficiario Preferente',
                    name: 'BeneficiarioPreferente',
                    entityName: 'ContactoSimple',
                    xtype: 'entity.link',
                    allowBlank: true
                }]
            }]
        });
        Cognitum.Polizas.Auto.Individual.Editor.superclass.initComponent.apply(this, arguments);
    }
    
});

Ext.reg('pol.auto.ind.editor', Cognitum.Polizas.Auto.Individual.Editor);
